/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */

#ifndef __PQ_LoginThreadManager_H__
#define __PQ_LoginThreadManager_H__

#include "PQPrerequisites.h"

namespace PQServiceLogin
{
	/*
	*/
	class LoginThreadManager
	{
	protected:
		LoginThreadManager();
	public:
		static LoginThreadManager& getSingleton()
		{
			static LoginThreadManager inst;
			return inst;
		}

		~LoginThreadManager();

		void init();
		void start();//start all login threads except main thread.
		void stop();

		inline uint getThreadsCount()
		{
			return _threadCount;
		}
	protected :
		uint _threadCount;
	};

}

#endif
